<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  <head>
    <title><?php include_slot('title', sfConfig::get('app_website_title')) ?></title>
    <meta property="og:title" content="<?php include_slot('title', sfConfig::get('app_website_title')) ?>" />
    <meta property="og:type" content="website" />
    <meta property="og:image" content="<?php echo url_for("@homepage", true).'images/og-image.png' ?>" />
    <meta property="og:site_name" content="<?php echo sfConfig::get('app_website_title'); ?>" />
    <meta property="fb:admins" content="1656151849" />
    <?php include_http_metas() ?>
    <?php include_metas() ?>
    <link rel="shortcut icon" href="/favicon.ico" />
    <?php include_stylesheets() ?>
    <?php include_javascripts() ?>
  </head>
  <body>
      <div id="page">
        <div id="header" style="background-image: url(/images/mgen/header/<?php echo KillTheDragon::getDayPeriod() ?>.jpg)" title="Header">
            <?php include_component('sfDoctrineBreadcrumbs', 'breadcrumbs'); ?><br/><br/>
            <div id="navigation">
                <?php include_partial('global/default-navigation') ?>
            </div>
            <div id="header-shadow"></div>
        </div>
        <div style="background-color: #ffffff; background-repeat: <?php include_slot('body-repeat', 'repeat') ?>;background-image: url(<?php include_slot('body-bg', '/images/mgen/geo/repeat-carte.jpg'); ?>); background-position: 100% 0%;">
        <div style="background-image: url(<?php include_slot('body-bg-head', '/images/mgen/geo/carte-head.jpg'); ?>); background-repeat: no-repeat; background-position: 100% 0%;">
        <div  style="background-image: url(<?php include_slot('body-bg-foot', '/images/mgen/geo/carte-foot.jpg'); ?>); background-repeat: no-repeat; background-position: 100% 100%;">
            <table id="body">
                   <tr>
                       <td id="lf-col-top">
                           <div class="leaves"></div>
                            <div style="margin-left: 5px; margin-top: 10px; position: relative; top: -120px; left: 15px;">
                                <?php include_component('player', 'player_bubble') ?>
                            </div>
                       </td>
                       <td id="rg-col" rowspan="2">
                            <?php include_partial('global/flashes') ?>
                            <div id="content" class="<?php include_slot('content-bg', 'content-bg') ?>">
                                <div id="content-right">
                                    <?php echo $sf_content ?>
                                </div>
                            </div>
                       </td>
                   </tr>
                   <tr>
                       <td id="lf-col-repeat">
                            <?php include_component('player', 'player_infos') ?>
                       </td>
                   </tr>
          </table>
        </div>
        </div>
        </div>
        <div id="footer">
            <div id="up-footer"></div>
            <div class="inter-footer" id="quick_stats">
                <div class="top-left"></div>
                <div class="top-repeat"></div>
                <div class="top-right"></div>

                <div style="clear:both"></div>

                <div class="left-repeat"></div>
                <div class="repeat">
                    <h3 class="sonic-title-font"> statistiques </h3>
                    <span class="span-14">
                        <?php include_component("oldforum", "lastmessageandaction") ?><br/>
                        <a href="<?php echo url_for("show_free_adventure")?>">Aventures en attente de joueurs</a>
                        <br/><br/><a href="<?php echo url_for("general/statistics")?>"> [Plus de chiffres inutiles ?]</a>
                    </span>
                    <span class="span-7">
                        <?php include_component("general", "quick_stats") ?>
                    </span>
                </div>
                <div class="right-repeat"></div>

                <div style="clear:both"></div>

                <div class="bottom-left"></div>
                <div class="bottom-repeat"></div>
                <div class="bottom-right"></div>
            </div>
             <div style="height: 10px"></div>
            <div id="footer-who">
                <!-- Who is online -->
                <div id="whoisonline" class="inter-footer">
                    <div class="top-left"></div>
                    <div class="top-repeat"></div>
                    <div class="top-right"></div>

                    <div style="clear:both"></div>

                    <div class="left-repeat"></div>
                    <div class="repeat">
                        <h3 class="sonic-title-font">qui est en ligne</h3>
                        Nous avons <?php echo count(sfGuardUser::getOnlineUsers()) ?> joueur<?php echo count(sfGuardUser::getOnlineUsers()) > 1 ? 's' : ''; ?> en ligne !
                        <br/>
                        <span class="bold">
                            <?php $i = 0; ?>
                            <?php if(!count(sfGuardUser::getOnlineUsers())): ?>
                                <span>C'est désert !</span>
                            <?php endif;?>
                            <?php foreach(sfGuardUser::getOnlineUsers() as $pl): ?>
                                <?php echo $i == 0 ? '' : ', ' ?>
                                <?php echo link_to($pl->getPseudo(), "show_player", $pl) ?>
                                <?php $i++; ?>
                            <?php endforeach; ?>
                        </span>
                    </div>
                    <div class="right-repeat"></div>

                    <div style="clear:both"></div>

                    <div class="bottom-left"></div>
                    <div class="bottom-repeat"></div>
                    <div class="bottom-right"></div>
                </div>
                <!-- Who is present -->
                <div id="whoispresent" class="inter-footer">
                    <div class="top-left"></div>
                    <div class="top-repeat"></div>
                    <div class="top-right"></div>

                    <div style="clear:both"></div>

                    <div class="left-repeat"></div>
                    <div class="repeat">
                        <h3 class="sonic-title-font">qui est la</h3>
                        Nous avons repéré <?php echo count(sfGuardUser::getOnlineUsers()) ?> personnage<?php echo count(sfGuardUser::getOnlineUsers()) > 1 ? 's' : ''; ?> sur la surface de Mobius :
                        <br/>
                        <span class="bold">
                            <?php $i = 0; ?>
                            <?php if(!count(sfGuardUser::getOnlineUsers())): ?>
                                <span>C'est désert !</span>
                            <?php endif;?>
                            <?php foreach(sfGuardUser::getOnlineUsers() as $pl): ?>
                                <?php if($pl->hasActualCharacter()): ?>
                                <?php echo $i == 0 ? '' : ', ' ?>
                                  <?php echo link_to($pl->getActualCharacter()->getPseudo(), "show_character", $pl->getActualCharacter()) ?>
                               <?php $i++; ?>
                                <?php endif; ?>
                            <?php endforeach; ?>
                        </span>
                    </div>
                    <div class="right-repeat"></div>

                    <div style="clear:both"></div>

                    <div class="bottom-left"></div>
                    <div class="bottom-repeat"></div>
                    <div class="bottom-right"></div>
                </div>
            </div>
            <div style="height: 50px"></div>
            <div class="inter-footer">
                <div class="top-left"></div>
                <div class="top-repeat"></div>
                <div class="top-right"></div>

                <div style="clear:both"></div>

                <div class="left-repeat"></div>
                <div class="repeat" style="text-align: center;"> Mobius Generations 2011-2012.
                                                                 
                                    <br/><span style="font-size: xx-small">Powered by Kill The Dragon bêta 1.0 | KTD © 2011-2012 Bartpab | <span class="bold">Welcome to Frontier Islands</span> conception graphique par Karma</span>
                </div>
                <div class="right-repeat"></div>

                <div style="clear:both"></div>

                <div class="bottom-left"></div>
                <div class="bottom-repeat"></div>
                <div class="bottom-right"></div>
            </div>
        </div>
        <!--
        <div id="footer">
            <div id="footer-middle">
                <div class="lf"></div>
                <div class="repeat">
                    <div>
                        <div id="footer-last-message">
                            <span class="sonic-title-font">dernier message </span>:<div id="footer-last-message-marquee">
                                <?php include_component("oldforum", "lastmessageandaction") ?>
                            </div>
                        </div>
                        <div id="footer-whoisonline">
                            <span class="sonic-title-font"><?php echo link_to("en ligne", "who_is_online") ?></span>:<div id="whoisonline-marquee" style="width: 370px">
                            <?php $i = 0; ?>
                            <?php if(!count(sfGuardUser::getOnlineUsers())): ?><span>C'est désert !</span>
                            <?php endif;?>
                            <?php foreach(sfGuardUser::getOnlineUsers() as $pl): ?>
                                <span>
                                    <?php echo $i == 0 ? '' : ', ' ?>
                                    <?php echo link_to($pl->getPseudo(), "show_player", $pl) ?>
                                            
                                 </span>
                             <?php endforeach; ?>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="rg"></div>
            </div>
        </div>
        -->
      <div id="player-menu" title="Menu Joueur"></div>
      <div id="freeow" class="freeow freeow-top-right"></div>
  </body>
  <script type="text/javascript">
      $(function(){
         $("#whoisonline-marquee").cycle({
             fx: "scrollRight",
             delay: - 5000
         });
         $("#footer-last-message-marquee").cycle({
             fx: "scrollRight",
             width: 365,
             delay: - 1000
         });
      });
  </script>
<script language="javascript" type="text/javascript" src="http://quickribbon.com/ribbon/2011/11/327cec7504b70babe1fa7aba5a9779b5.js"></script><noscript><a href="http://quickribbon.com/">Quickribbon</a></noscript>
</html>
